﻿/* You are given a sequence of positive integer values written into a string, separated by spaces. Write a function that reads these values from given string and calculates their sum. 
Example:
string = "43 68 9 23 318"  result = 461
*/
using System;

namespace _6.CalcStringSum
{
    class CalcStringSum
    {
        static void Main()
        {
            string[] str = Console.ReadLine().Split(' ');
            int sum = 0;
            foreach (var v in str) sum += int.Parse(v);
            Console.WriteLine("Sum: {0}", sum);
        }
    }
}
